
function CutomizeMe(){
		//js code
		var mblogurl = document.getElementsByName('urlblog')[0].value;
		var msposone = document.getElementsByName('textpostone')[0].value;
		var mspostwo = document.getElementsByName('textposttwo')[0].value;
		var mskmnone = document.getElementsByName('textcomtone')[0].value;
		var mskmntwo = document.getElementsByName('textcomttwo')[0].value;

		//style code
		var backgrnd = document.getElementsByName('Bgstyle')[0].value;
		var brdrsize = document.getElementsByName('bdrsize')[0].value;
		var brdrcolr = document.getElementsByName('bdrclor')[0].value;
		var brdradus = document.getElementsByName('bdradus')[0].value;
		var tkscolor = document.getElementsByName('txtclor')[0].value;
		var tknmclor = document.getElementsByName('jsnmclr')[0].value;
		var ipadding = document.getElementsByName('padingy')[0].value;
		var brdrstyl = document.getElementsByName('bdrstyl')[0].selectedIndex;
		var boxalign = document.getElementsByName('dvalign')[0].selectedIndex;
		var textdeco = document.getElementsByName('txnmwgh')[0].selectedIndex;
		var gottextd = new Array('normal','bold','italic','underline','line-through');
		var toyissid = new Array('solid','dotted','dashed','double','groove','ridge','inset','outset');
		var dasfssid = new Array('center','div align=\'left\'','div align=\'right\'','/center','/div','/div');
		var teksarea = document.getElementsByName('widget.content')[0];
		var txtone = mblogurl;
		var txttwo = dasfssid[boxalign];
		var ttwone = dasfssid[boxalign+3];
		var txtfor = gottextd[textdeco];
		var txtree = ' '+toyissid[brdrstyl];
		var txtfif = ''+brdrsize+'px';
		var txtsix = ' '+brdrcolr;
		var txtsev = "color : "+tkscolor+";\n";

		//on customize js
		teksarea.value = "\<!--Start HantuJavascript Widget--\>\n\<scr"+"ipt\>function onhidento(meko, tiko, miko){document.getElementById(meko).width = tiko;document.getElementById(meko).style.display = miko;}\</scr"+"ipt\>\<div onmouseover=\"onhidento('goahaed', '72', 'inline');\" onmouseout=\"onhidento('goahaed', '0', 'inline');\"\>\<div class='boxbyfadz'>\n<"+txttwo+"\>\<sc"+"ript style=\"text/javascript\"\>function numposts(json) { document.write('"+msposone+"<span class=\"posteksfadz\">' + json.feed.openSearch$totalResults.$t + '\</span\>"+mspostwo+"\<br\>'); }function numcomments(json) { document.write('"+mskmnone+"<span class=\"posteksfadz\">' + json.feed.openSearch$totalResults.$t + '\</span\>"+mskmntwo+"\<br\>'); }</sc"+"ript\>\n\<scr"+"ipt src=\"http:\/\/"+txtone+"/feeds/posts/default?alt=json-in-script&callback=numposts\"\>\</scr"+"ipt\>\n\<sc"+"ript src=\"http:\/\/"+txtone+"/feeds/comments/default?alt=json-in-script&callback=numcomments\"\>\</scr"+"ipt\>\<"+ttwone+"\>\n\</div\>\n\<div align=\"right\"\>\<a href=\"http://hantujavascript.blogspot.com/\" target=\"_blank\"\>\<img border=\"0\" height=\"18x\" id=\"goahaed\" src=\"http://3.bp.blogspot.com/-uYZ-8Scpmsw/TihGZAvsOqI/AAAAAAAAAPw/iTSVZSrQt5I/s400/HantuJavscript+Logos.png\" width=\"0px\" style=\"display:inline;\"/>\n\</a\>\</div\>\</div\>\n";
		if(document.getElementById('stylecode').checked){
			//start style box
			teksarea.value = teksarea.value + "\<style\>\n";
			//seluruh kotak
			teksarea.value = teksarea.value + "div.boxbyfadz {\n";
			//background tyle
			if(backgrnd !== '' || backgrnd.length >1){
				var txtolone ="background : "+backgrnd+"}\n";
				if(backgrnd == '' || backgrnd.length<=1 || backgrnd == '#'){txtolone = ''}
				if(backgrnd.search('http') >= 0){txtolone = 'background : url('+backgrnd+') no-repeat;\n'}
				teksarea.value = teksarea.value + txtolone;
			}
			//border
			if(brdrsize !== '' || brdrsize.length >0 || brdrcolr !== '' || brdrcolr.length >0){
				if(brdrsize=='' || brdrsize.length<=0){txtfif=brdrsize+'px';}
				if(brdrcolr=='' || brdrcolr.length<=1 || brdrcolr=='#'){txtsix='';}
				teksarea.value = teksarea.value + "border :"+txtfif.replace(/ /gi, 'px ')+""+txtree+""+txtsix+";\n";
			}
			//border radius
			if(brdradus !== '' || brdradus.length >=0){
				teksarea.value = teksarea.value + "-webkit-border-radius : "+brdradus.replace(/ /gi, 'px ')+"px;\n";
				teksarea.value = teksarea.value + "-moz-border-radius : "+brdradus.replace(/ /gi, 'px ')+"px;\n";
				teksarea.value = teksarea.value + "-o-border-radius : "+brdradus.replace(/ /gi, 'px ')+"px;\n";
				teksarea.value = teksarea.value + "border-radius : "+brdradus.replace(/ /gi, 'px ')+"px;\n";
			}
			//warna teks
			if(tkscolor != '' || tkscolor.length>1 || tkscolor.substr(0) != '#'){
			if(tkscolor == '' || tkscolor.length<=1 || tkscolor.substr(0) == '#' &&  tkscolor.substr(1) !== '#'){txtsev='';}
				teksarea.value = teksarea.value + txtsev;
			}
			//padding
			if(ipadding == '' || ipadding.length == 0){
			}else{
				teksarea.value = teksarea.value + 'padding : '+ ipadding.replace(/ /gi, 'px ')+'px;\n';
			}
			teksarea.value = teksarea.value + "}\n";

			//teks untuk nombor post dan komen
			teksarea.value = teksarea.value + "span.posteksfadz {\n";
			//teks decoration
			if(textdeco == 2){teksarea.value = teksarea.value +"font-style: "+gottextd[textdeco]+";\n";}
			if(textdeco == 1){teksarea.value = teksarea.value +"font-weight: "+gottextd[textdeco]+";\n";}
			if(textdeco !== 1 && textdeco !== 2){teksarea.value = teksarea.value + "text-decoration: "+gottextd[textdeco]+";\n";}
			//teks js color
			if(tknmclor !== '' || tknmclor.length >0){
				teksarea.value = teksarea.value + "color : "+tknmclor+";\n";
			}
			teksarea.value = teksarea.value + "}\n";
			//tutup
			teksarea.value = teksarea.value + "\</style\>\n";
		}
		teksarea.value = teksarea.value + "\<!--End HantuJavascript Widget--\>";
}
function CreateHTML(){
		//js code
		var msposone = document.getElementsByName('textpostone')[0].value;
		var mspostwo = document.getElementsByName('textposttwo')[0].value;
		var mskmnone = document.getElementsByName('textcomtone')[0].value;
		var mskmntwo = document.getElementsByName('textcomttwo')[0].value;

		//style code
		var backgrnd = document.getElementsByName('Bgstyle')[0].value;
		var brdrsize = document.getElementsByName('bdrsize')[0].value;
		var brdrcolr = document.getElementsByName('bdrclor')[0].value;
		var brdradus = document.getElementsByName('bdradus')[0].value;
		var tkscolor = document.getElementsByName('txtclor')[0].value;
		var tknmclor = document.getElementsByName('jsnmclr')[0].value;
		var ipadding = document.getElementsByName('padingy')[0].value;
		var brdrstyl = document.getElementsByName('bdrstyl')[0].selectedIndex;
		var boxalign = document.getElementsByName('dvalign')[0].selectedIndex;
		var divinner = document.getElementById('innerstatistic');
		var okoodua = document.getElementById('oklahsatu');
		var okotiga = document.getElementById('oklahdua');
		var txtolone = "background : "+backgrnd+"}\n";
		var textdeco = document.getElementsByName('txnmwgh')[0].selectedIndex;
		var gottextd = new Array('normal','bold','italic','underline','line-through');
		var dasfssid = new Array('center','left','right');
		var toyissid = new Array('solid','dotted','dashed','double','groove','ridge','inset','outset');
		var shangjskod = "text-decoration: "+gottextd[textdeco]+";";
		if(document.getElementById('stylecode').checked){
			if(textdeco == 2){shangjskod = "font-style: "+gottextd[textdeco]+";";}
			if(textdeco == 1){shangjskod = "font-weight: "+gottextd[textdeco]+";";}
			var changjskod = "color: "+tknmclor+";";
		}
			var allinner = msposone+"<span style=\""+shangjskod+""+changjskod+"\" title=\"just example\">100</span>"+mspostwo+"<br>"+mskmnone+"<span style=\""+shangjskod+""+changjskod+"\" title=\"just example\">100</span>"+mskmntwo;
			divinner.innerHTML = allinner;
		if(document.getElementById('stylecode').checked){
			if(backgrnd.search('http') <= 5){divinner.style.backgroundImage ="url('"+backgrnd+"')";}
			if(backgrnd.search('#')<=1){divinner.style.background = backgrnd;}
			divinner.style.borderWidth = brdrsize;
			divinner.style.borderColor = brdrcolr;
			divinner.style.borderStyle = toyissid[brdrstyl];
			divinner.style.color = tkscolor;
			divinner.style.textAlign = dasfssid[boxalign];
			divinner.style.borderRadius = brdradus;
			divinner.style.MozBorderRadius = brdradus;
			divinner.style.WebkitBorderRadius = brdradus;
			divinner.style.padding = ipadding;
		}
		document.getElementById('osdgagkf').style.display='block';
}
function checkIt(evt) {
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (charCode >= 71 && charCode <= 90) {
			status = "code hex only..."
			return false
		}
		status = ""
		return true
}
function foksdajfds(evt) {
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (evt.shiftKey && charCode >= 48 && charCode <= 57 || charCode > 32 && charCode < 48 || charCode > 57 && charCode < 91 || charCode > 105) {
			status = "number only only..."
			return false
		}
		status = ""
		return true
}
function httponlkfas(evt) {
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (charCode == 32){
			status = "no space..."
			return false
		}
		status = ""
		return true
}
var jdsaf="off";
var jdsbf='off';
var jdscf='off';
var jdsdf='off';
function areYouSure(){
if(jdsaf=='on'&&jdsbf=='on'&&jdscf=='on'&&jdsdf=='on'){
return "Are you sure you want to leave the current page?";
}}
window.onbeforeunload = areYouSure;